package com.rzj.sys_lab_assistant.dao;

import com.rzj.sys_lab_assistant.entity.Department;
import com.rzj.sys_lab_assistant.entity.bo.DepartmentBO;
import com.rzj.sys_lab_assistant.entity.bo.DepartmentTypeBO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @program: sys_lab_assistant
 * @description:
 * @author: 作者
 * @create: 2021-06-29 09:27
 */

@Mapper
public interface DepartmentMapper {

    List<DepartmentBO> listDepartments(); // 获取部门列表

    List<DepartmentBO> listDepartmentsByType(int typeId); // 通过部门类型获取部门列表

    List<DepartmentTypeBO> listDepartmentTypes(); // 获取部门类型列表

    DepartmentBO getDepartmentById(int id); // 获取部门信息；

    int saveDepartment(Department department);

    int updateDepartment(Department department);

    int deleteDepartment(int id);

}
